<style>

</style>

<template>
  <div id="app">
    <div>
      <CommonCrud :def="def1" :edit-com="MngEdit"></CommonCrud>
<!--      <CommonCrud :def="def2" :edit-com="MngEdit"></CommonCrud>-->
    </div>
  </div>
</template>

<script>

import CommonCrud from "@/components/CommonCrud";
import MngEdit from "./components/MngEdit";

export default {
  name: 'App',
  components: {CommonCrud},
  data() {
    return {
      MngEdit,
      def1: {
        listReq(options) {
          return globalThis.Req.get('/api/list', options)
        },
        useAction: true
      },
      def2: {
        listReq(options) {
          return globalThis.Req.get('/api/list', options)
        },
        useAction: true
      }
    }
  },
  methods: {

  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
</style>
